<template>
  <div class="cainixihuanitem">
      <div class="img">
          <img :src="imgurl"/>
      </div>
      <div class="text">
          <p>{{title}}</p>
          <div class="type">
            <span>{{type1}}</span>
            <span>{{type2}}</span>
            <span>{{type3}}</span>
          </div>
          <div class="mo">
              <span>{{price}}</span>
              <span>...</span>
          </div>
          <span class="span">{{rela}}</span>
      </div>
  </div>
</template>

<script>
export default {
    props:["imgurl","title","type1","type2","type3","price","rela"]
}
</script>

<style lang="scss">
.cainixihuanitem{
    background-color: #fff;
  
    // height: 1.725rem;
    padding: .05rem;
   
    .img{
        img{
            width: 1.625rem;
            height: 1.625rem;
        }
    }
    .text{
        width: 100%;
        p{
            margin-top: .05rem;
            height: .19rem;
            line-height: .19rem;
            font-size: .14rem;
            color: #666;
        }
        .type{
            span{
                border: 1px solid #ccc;
                font-size: 12px;
            }
        }
        .mo{
            width: 100%;
            height: .22rem;
            line-height: .22rem;
            margin-top: .05rem;
            span:nth-child(1){
                color: #ff5757;
                font-size: .14rem;
                font-weight: bold;

            }
        }
        .span{
            display: inline-block;
            width: 100%;
            height: .4rem;
            margin-left: .1rem;
            font-weight: bold;
            line-height: .4rem;
        }

    }
}
</style>